<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
    <style>
        form{
            height: 38px; 
            margin: 50px;   
            width:900px;
        }
        form span{
            background: #f5f5f5;
            display: block;
            padding: 0 10px;
            /* align-self: center; */
            line-height: 38px;
        }
        form input{
            flex: 1;
        }
        form p{
            display: flex;
            border:solid 1px #ccc;
        }
        form p:nth-of-type(2){
            margin-top: 30px;
        }
    </style>
</head>
<body>
   <form action="">
      <p>
        <span>About</span>
        <input type="text">
        <span>About</span>
      </p>
      <p>
        <span>About</span>
        <input type="text">
        <span>About</span>
      </p>
       
   </form> 
</body>
</html>